{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Sample in Buffer,Sample in Window,TRIGGER,design_1_i/adc_capture_module_0_test_out_1,design_1_i/adc_capture_module_0_test_out,design_1_i/adc_capture_module_0_debug_status[7:0],design_1_i/rst_ps7_0_100M_peripheral_aresetn,design_1_i/adc_input_0_1[7:0],design_1_i/clk_wiz_0_clk_out1,design_1_i/adc_capture_module_0_debug_status2[7:0]\n",
      "\n",
      "1024\n",
      "[40, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 93, 93, 93, 93, 93, 93, 93, 93, 93, 93, 81, 81, 81, 81, 81, 81, 81, 81, 81, 81, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 73, 73, 73, 73, 73, 73, 73]\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW8AAAD6CAYAAABu4MZQAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjMsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+AADFEAAAezklEQVR4nO3df5Dcd33f8ef77nbvdvfuJEs6WbKkyEiOwRgSE4kAhrRAII5pUkJSiiHQFmI8aV3ihDBJh5aWThsNQ03GScpMRiHBgGdK3QBJgQC1aO0CsducwRisYmPJkiVZss+yLelu93Zvd9/947t7Wkt31u7q+939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bQA+B7wXeB/JeB6/Cdzt7o+a2eta15L2GmwkeJv+KuBZggDcBDzY8ZjYPgczmwbeRfAL9EXAhwgCIkmvAaz+fZOo7yczuwL4T8AvtS7Fpv9xD+/jwOs7/r4V+D/D6Ur3zOwS4MvAh93971q/uZOwF8x7gCkzezvBlgclgpF4Evre9hRwv7sfBTCzuwh+uJLyHN4NPNh6y363mb2N4F5PUvrfttr+R+dev4xgVB47ZrYd+EuC8wwOtS7Hpv9xL5t8A7jOzDZ21DL/x5D79IJaI6f/DvyBu3+tdTkRe8G4+7Xu/nJ3vwb4t8CXgK+QgL53uA94qZldZmbjwJsI6sZJeQ6LwDVmljOzKeBKgncPSel/22rf818F/qmZjZrZm4FH3P2ZYXZ0JWa2Bfgi8H53/27HP8Wm/7Eeebv7k2b2r4F7W5d+190XhtmnLvwW8DPAbWZ2W+vaLwCD3AsmND74fWwuirsvmNkHgLuAcYKbS59oBXkSnsMdBDMaDgIV4DPu/p04vwatXzLfI5hZMmFmrwfezwrf82b2JYLZVweBkwQloqFapf/t2WL/JbgVBATluNj0X3ubiIgkUNzLJiIisgKFt4hIAim8RUQSSOEtIpJACm8RkQRSeIuIJJDCW0QkgRTeIiIJ9P8Ba46qP28A9UIAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "import matplotlib.pyplot as plt\n",
    "import numpy as np\n",
    "\n",
    "\n",
    "f = open(\"e://iladata2.csv\", encoding='utf-8')  # 返回一个文件对象\n",
    "\n",
    "line = f.readline()  # 调用文件的 readline()方法\n",
    "print(line)\n",
    "first = True\n",
    "result = []\n",
    "while line:\n",
    "    if first:\n",
    "        first = False\n",
    "    else:\n",
    "        ds = line.split(',')\n",
    "        result.append(int(ds[7],16))\n",
    "#         if ((ds[3] == '1') and (ds[6] == '1')):\n",
    "#             result.append(int(ds[4][0:2],16))\n",
    "#             result.append(int(ds[4][2:4],16))\n",
    "#             result.append(int(ds[4][4:6],16))\n",
    "#             result.append(int(ds[4][6:8],16))\n",
    "    line = f.readline()\n",
    "\n",
    "print(len(result))        \n",
    "print(result[0:128])        \n",
    "\n",
    "\n",
    "ypoints = np.array(result[0:128])\n",
    "\n",
    "plt.plot(ypoints, linestyle = 'solid')\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
